| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

Static Public Member Functions | List of all members
nkAstraeus::OneChannelPackUtils Class Referencefinal

Offers tools to work with the ONE_CHANNEL_PACK enumeration. More...

## Static Public Member Functions
static nkMemory::StringView | enumToStringLower (ONE_CHANNEL_PACK value)
static ONE_CHANNEL_PACK | stringLowerToEnum (nkMemory::StringView value)

## Detailed Description

Offers tools to work with the ONE_CHANNEL_PACK enumeration.

## Member Function Documentation

## ◆ enumToStringLower()

static nkMemory::StringView nkAstraeus::OneChannelPackUtils::enumToStringLower | ( | ONE_CHANNEL_PACK | value | ) |
| static

Translates an enumeration value into its lowercase string representation :

Value | Output
--- | ---
ONE_CHANNEL_PACK::R | "r"
ONE_CHANNEL_PACK::G | "g"
ONE_CHANNEL_PACK::B | "b"
ONE_CHANNEL_PACK::A | "a"
Any other value | "unknown"

Parameters

  value | The enumeration value to translate.

Returns
  The enumeration translated as a string.

## ◆ stringLowerToEnum()

static ONE_CHANNEL_PACK nkAstraeus::OneChannelPackUtils::stringLowerToEnum | ( | nkMemory::StringView | value | ) |
| static

Translates a lowercase string into its enumeration value :

Value | Output
--- | ---
"r" | ONE_CHANNEL_PACK::R
"g" | ONE_CHANNEL_PACK::G
"b" | ONE_CHANNEL_PACK::B
"a" / Any other string | ONE_CHANNEL_PACK::A

Parameters

  value | The string to translate

Returns
  The string translated into an enumeration value.

The documentation for this class was generated from the following file:

- Documentation/Headers/NilkinsAstraeus/Graphics/Enums/OneChannelPack.h